public
class MyThread extends Thread
{
	int delay;
	Main parent;
	boolean stopped;
	public MyThread(Main parent, int delay)
	{
		super();
		this.delay = delay;
		this.parent = parent;
	}
	public void run()
	{
		stopped = false;
		for(int i = 0; i < 100; i++){
			try{
				sleep(delay);
			}
			catch(InterruptedException e){
			}
			if(stopped){
				break;
			}
			parent.lProgress.setText(Integer.toString(i + 1) + "%");
		}
	}
}
